package cn.pku.ss.fa.sessionbean;

import java.util.List;

import javax.ejb.*;

import cn.pku.ss.fa.bean.*;

@Local
public interface ArticleManagerLocal {

	//public int uploadArticle(String userName, ArticleLittleBean articleBean);
	//public List<ArticleLittleBean> listArticles(String userName);
	public int newArticle(String articleName, String articleContent, int userId);
	public void updateArticleByArticleId(String articleName, String articleContent, int  
			articleId);
	public void deleteArticleByArticleId(int articleId);
	public ArticleLittleBean getArticleLittleBeanByArticleId(int articleId);
	public void publishCommentOrReply(ArticleReplyBean reply); 
	public List<ArticleLittleBean> getArticleListByUserId(int userId);
	public List<NoticeMessageBean> getNoticeMessagesByUserId(int userId);
	public List<ArticleLittleBean> getFriendsRecentArticleList(int userId);
	public void deleteArticleReplyReminder(int articleReplyId);
	public void deleteArticleReminder(int articleId, int userId);

}
